<?php
/**
 * Created by PhpStorm.
 * User: XT
 * Date: 2017/4/17
 * Time: 9:59
 */
namespace core;

abstract class Controller {

    protected $view;

    public function __construct()
    {
        $this->view = View::getInstance();
    }

    /**
     * 返回模板信息
     * @param string $template
     * @param array $params
     * @return string
     */
    protected function fetch($template = '', $params = [])
    {
        return $this->view->fetch($template, $params);
    }

}